//
//  STEternalProtocol.swift
//  iPhone
//
//  Created by Toj on 7/26/22.
//

import Foundation
import UIKit

protocol STEternalModel { }

protocol STEternalProtocol: NSObjectProtocol {
    var model: STEternalModel? { set get }
}

extension String: STEternalModel { }

extension UIImageView: STEternalProtocol {
    var model: STEternalModel? {
        set {
            guard let m = newValue as? String else { return }
            image = UIImage(named: m)
        }
        get {
            return nil
        }
    }
}
